import re

def run_conversation():
    # 输入的文本
    text = "'It's okay, I'll find them myself.' Lu Yun took a deep breath, adjusted his mood, turned into a stream of light, and headed towards his former home., sunlight, anime style --aa 9:8 --aa 7:8"

    # 使用正则表达式查找所有的参数值对
    matches = re.findall(r'--[^ ]+ [^ ]+', text)

    # 创建一个字典来存储参数和对应的值
    param_dict = {}

    # 遍历匹配结果
    for match in matches:
        parts = match.split(' ')
        param = parts[0]
        value = parts[1]

        # 如果参数已经在字典中，表示重复参数，报错
        if param in param_dict:
            print(f"错误：重复参数 {param}")
            break

        # 将参数和值存入字典
        param_dict[param] = value

    # 如果没有重复参数，打印参数字典
    if len(param_dict) > 0:
        print("参数字典：")
        for param, value in param_dict.items():
            print(f"{param}: {value}")



if __name__ == '__main__':
    x = print(run_conversation())
    print(x)